from django.conf.urls import url
from . import views
urlpatterns = [
    # 注册
    url(r'^api/v1.0/users$', views.Register.as_view(), name='register'),
    # 登录
    url(r'^api/v1.0/session$', views.LoginView.as_view(), name="login"),
    # 用户名修改
    url(r'^api/v1.0/user/name$', views.user_name_amend.as_view()),
    # 个人中心
    url(r'^api/v1.0/user/$', views.Personal_center.as_view()),
    # 身份验证
    url(r'^api/v1.0/user/auth$', views.Approve.as_view()),
    # 上传图片
    url(r'^api/v1.0/user/avatar$',views.UpdateAvatar.as_view(),name="avatar")
]


